echo "版本：$1";
nvm use 16
cd app_web && yarn && yarn build && cd ../
mvn clean
rm -rf uaa-api/target/classes/static
mkdir -p uaa-api/target/classes/static
cp -r app_web/dist/* uaa-api/target/classes/static/
mvn package -Papi
#docker buildx build --platform linux/arm64,linux/amd64 -t ibiz4j/uaa-standalone:$1 -t ibiz4j/uaa-standalone:latest --push .
docker build -t ibiz4j/uaa-standalone:$1 . && docker push ibiz4j/uaa-standalone:$1